package cn.cybozu.api;

/**
 * REST API 例外
 * @author daisuke-ito
 */
public class KintoneRestException extends Exception
{
	private static final long serialVersionUID = -2635160949575910632L;
	/** error code */
	private String code = "";
	/** 問い合わせID */
	private String id = "";
	/** error理由 */
	private String reason = "";
	
	public KintoneRestException(String response)
	{
		super(response);
	}
	public KintoneRestException(Throwable cause)
	{
		super(cause);
	}
	public String getCode()
	{
		return code;
	}
	public String getId()
	{
		return id;
	}
	public String getReason()
	{
		return reason;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public void setId(String id) {
		this.id = id;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
	
}
